package com.baox.agridata.synchronous.dao;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.TCCOutPAEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TCCOutPAMapper {


    /**
     * 查询四川外省产品A到成都的数据
     *
     * @param createTime
     * @return
     */
    @DS("sichuanc")
    List<TCCOutPAEntity> selectTCCOutPADataToChengDu(@Param("createTime") String createTime, @Param("endTime") String endTime);


    /**
     * 根据mid查询外省的动物A证数据
     *
     * @param mid
     * @return
     */
    @DS("sichuanc")
    TCCOutPAEntity selectTCCOutPAById(@Param("mid") String mid);


    /**
     * 更新外省的动物A数据
     *
     * @param tccOutPAEntity
     * @return
     */
    @DS("sichuanz")
    Integer updateTCCOutAAById(TCCOutPAEntity tccOutPAEntity);

}
